<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class PostTopic extends Model
{
    // 指定表名
    protected $table = 'post_topics';

    // 允许批量赋值的字段
    protected $fillable = ['post_id', 'topic_id'];

    // 禁止批量赋值的字段
    protected $guarded = [];
}
